package com.lfx.concurrent;

import java.util.concurrent.CyclicBarrier;

/**
 * @author 李逢喜
 * create 2021/8/2
 */
public class Main3 {


    public static void main(String[] args) {
        CyclicBarrier cyclicBarrier=new CyclicBarrier(5);
        for (int i = 0; i < 5; i++) {
            new MyThread3(cyclicBarrier,"应聘者"+i).start();
        }
        System.out.println("主线程退出");
    }
}
